//如果用uni请求
// import http from './http.interceptor.js';

//如果是用uview请求,就用下面这句
const http = uni.$u.http

let api = {
	user_login: params => http.post('user-login', params), //用户登陆
	user_info: params => http.post('user-info', params), //用户信息
	user_recharge: params => http.post('user-recharge', params), //充值
	station_list: params => http.post('station-list', params), //电站列表
	station_info: params => http.post('station-info', params), //电站详情
	add_station_fav: params => http.post('add-station-fav', params), //收藏电站
	del_station_fav: params => http.post('del-station-fav-list', params), //删除收藏
	station_fav_list: params => http.post('station-fav-list', params), //收藏电站列表
	dpcpay: params => http.post('dpc/dpcpay', params), //支付订单
	orderdetail: params => http.post('dpc/orderdetail', params), //订单详情
	endorder: params => http.post('dpc/endorder', params), //结束订单
	user_order_list: params => http.post('user-order-list', params), //订单列表
	rechargelog: params => http.post('user-recharge-records', params), //充值记录
}


export default api;